package com.hawthorn.admin.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hawthorn.admin.model.po.SysMenuPO;
import com.hawthorn.admin.repository.provider.SysMenuSqlProvider;
import com.hawthorn.platform.repository.DBMapper;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>todo 菜单管理数据层</p>
 * @author: WCZ
 * @created: 2022/7/7$ 14:00$
 * @version v1.0.1
 */

@Repository
public interface SysMenuMapper extends DBMapper<SysMenuPO>
{
  @SelectProvider(SysMenuSqlProvider.class)
  IPage<Map<String, Object>> findMenu(Page<Map<String, Object>> page, String qc);

  @SelectProvider(SysMenuSqlProvider.class)
  Integer checkMenu(SysMenuPO sysMenuPO);
  @SelectProvider(SysMenuSqlProvider.class)
  List<Map<String, Object>> exportMenu(String fields, String qc);
  @SelectProvider(SysMenuSqlProvider.class)
  int findById(long id);
}
